package com.wyq.action;

import java.io.InputStream;

import com.opensymphony.xwork2.ActionSupport;
import com.wyq.service.CompanyService;

public class CreateCompanyExcelAction extends ActionSupport {
	private CompanyService companyService;
	private String showId; 
	public void setCompanyService(CompanyService companyService) {
		this.companyService = companyService;
	}
	
	public InputStream getDownloadFile(){
		InputStream inputStream = null;
		try {
			inputStream = companyService.getInputStream(showId);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return inputStream;
		
	}
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public String getShowId() {
		return showId;
	}

	public void setShowId(String showId) {
		this.showId = showId;
	}


}
